﻿using System;
using InseSoft.ViewModels;
using InseSoft.Views;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace InseSoft.Tests.Unit.ViewModels
{
    [TestClass]
    public class ViewViewModelTest
    {
        [TestMethod]
        public void Constructor()
        {
            var viewFunc = new Func<IWindow>(() => new EmpresaWindow());
            var viewModelFunc = new Func<IEntityViewModel>(() => new BaseCatalogEntityViewModel());

            var instance = new ViewViewModel(viewFunc, viewModelFunc);
            
            Assert.AreEqual(viewFunc, instance.View);
            Assert.AreEqual(viewModelFunc, instance.ViewModel);
        }
    }
}
